<!-- Teacher_MonthNoReviewedFrameDetail_Frame.html -->
<!--教师未查看月报详情-->
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>老师端月报详情页</title>
		<script src="../../script/mui.min.js"></script>
		<link href="../../css/weui.min.css" rel="stylesheet"/>
		<link rel="stylesheet" type="text/css" href="../../css/mui.min.css">
		<link rel="stylesheet" type="text/css" href="../../css/base.css"/>
		<link rel="stylesheet" type="text/css" href="../../css/attachmentCss.css">
		<script type="text/javascript" src="../../script/echarts.min.js"></script>
		<script type="text/javascript" charset="utf-8">
			mui.init();
		</script>
	</head>
	<body>
		<div>
			<div class="bgwhite padding10">
				<div id="segmentedControl" class="mui-segmented-control">
					<a class="mui-control-item mui-active" href="#item1"> 学生自评 </a>
					<a class="mui-control-item" href="#item2"> 企业评分 </a>
					<!--<a class="mui-control-item" href="#item3"> 老师评分 </a>-->
				</div>
			</div>
			<div id="item1" class="mui-control-content mui-active top_10 bottom_30">
				<ul class="mui-table-view writeReport">
					<li class="mui-table-view-cell base_dark_grey" id="timediv_one" style="display: none">
						<div class="cell_left_img_div">
							<img class="cell_img" src="../../image/icon_clock.png" alt="">
						</div>
						<span class="time_span base_title_font" > 应交日期:</span>
						<span class="time_span base_title_font" id="nomal_time"> </span>
					</li>
					<li class="mui-table-view-cell base_dark_grey" id="timediv_two">
						<div class="cell_left_img_div">
							<img class="cell_img" src="../../image/icon_clock.png" alt="">
						</div>
						<span class="time_span base_title_font" > 提交日期:</span>
						<span class="time_span base_title_font" id="now_time"> </span>
					</li>
				</ul>
				<div class="feeling top_10">
					<p class="title">
						月工作总结
					</p>
					<div class="feeling-text">
						<p id="summary" style=" word-break: break-all"></p>
					</div>
				</div>
				<div class="text_feel top_10 " hidden="hidden"  id="attachment_div">
					<div style="padding: 10px 20px;">
						<p class="title "style="margin-bottom:0;">
							附件
						</p>
						<div class="feeling-text top_5 left_15"  hidden="hidden" id="nullImg">
							<p>
								无
							</p>
						</div>
					</div>
					<div id="attachmentTableView" class="weui_cells fileDownLoad_Div"></div>
					<div class="blank"></div>
				</div>
				<div class="myScore" id="dgsxm" hidden="hidden">
					<p class="title">
						给企业师傅的评分
					</p>
					<div class="myScore-starscore clearfix">
						<div class="letter left">
							工作技能指导：
						</div>
						<div class="star left" id="taiduNum">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png" hidden="hidden">
						</div>
					</div>
					<div class="myScore-starscore clearfix top">
						<div class="letter left">
							业务能力：
						</div>
						<div class="star left" id="chuqinNum">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png" hidden="hidden">
						</div>
					</div>
					<div class="myScore-starscore clearfix top">
						<div class="letter left">
							心理辅导：
						</div>
						<div class="star left" id="workendNum">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png" hidden="hidden">
						</div>
					</div>
					<div class="myScore-starscore clearfix top">
						<div class="letter left">
							职业素养培养：
						</div>
						<div class="star left" id="jinengNum">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png" hidden="hidden">
						</div>
					</div>
				</div>
			</div>
			<div id="item2" class="mui-control-content top_10 bottom_30">
				<div class="feeling">
					<p class="title">
						企业师傅评语
					</p>
					<div class="feeling-text">
						<p id="qcomment" class="sy"></p>
					</div>
				</div>
				<!-- 跟岗实习-->
				<div class="myScore"  id="ggsxqy" hidden="hidden">
					<p class="title">
						企业评分
					</p>
					<div class="myScore-starscore clearfix">
						<div class="letter left">
							工作能力：
						</div>
						<div class="star left" id="taiduNum22">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png" hidden="hidden">
						</div>
					</div>
					<div class="myScore-starscore clearfix top">
						<div class="letter left">
							工作态度：
						</div>
						<div class="star left" id="chuqinNum22">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png" hidden="hidden">
						</div>
					</div>
					<div class="myScore-starscore clearfix top">
						<div class="letter left">
							职业素养：
						</div>
						<div class="star left" id="workendNum22">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png" hidden="hidden">
						</div>
					</div>
					<div class="myScore-starscore clearfix top">
						<div class="letter left">
							沟通能力：
						</div>
						<div class="star left" id="jinengNum22">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png" hidden="hidden">
						</div>
					</div>
				</div>
				<!-- 顶岗实习-->
				<div class="myScore"  id="dgsxqy" hidden="hidden">
					<p class="title">
						企业评分
					</p>
					<div class="myScore-starscore clearfix">
						<div class="letter left">
							工作业绩：
						</div>
						<div class="star left" id="taiduNum2">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png" hidden="hidden">
						</div>
					</div>
					<div class="myScore-starscore clearfix top">
						<div class="letter left">
							工作能力：
						</div>
						<div class="star left" id="chuqinNum2">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png" hidden="hidden">
						</div>
					</div>
					<div class="myScore-starscore clearfix top">
						<div class="letter left">
							工作态度：
						</div>
						<div class="star left" id="workendNum2">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png" hidden="hidden">
						</div>
					</div>
					<div class="myScore-starscore clearfix top">
						<div class="letter left">
							职业素养：
						</div>
						<div class="star left" id="jinengNum2">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png" hidden="hidden">
						</div>
					</div>
				</div>
				<!--<a  id="think" hidden="hidden" href="javascript:;" class="buttonBtn" onclick="next()">我要评分</a>-->
			</div>
			<div id="item3" class="mui-control-content top_10 bottom_30">
				<div class="feeling">
					<p class="title">
						老师评语
					</p>
					<div class="feeling-text">
						<p id="lscomment" class="sy"></p>
					</div>
				</div>
				<div class="myScore"  id="ggsxls" hidden="hidden">
					<p class="title">
						老师评分
					</p>
					<div class="myScore-starscore clearfix">
						<div class="letter left">
							学习能力：
						</div>
						<div class="star left" id="taiduNum12">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png" hidden="hidden">
						</div>
					</div>
					<div class="myScore-starscore clearfix top">
						<div class="letter left">
							工作能力：
						</div>
						<div class="star left" id="chuqinNum12">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png" hidden="hidden">
						</div>
					</div>
					<div class="myScore-starscore clearfix top">
						<div class="letter left">
							工作态度：
						</div>
						<div class="star left" id="workendNum12">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png" hidden="hidden">
						</div>
					</div>
					<div class="myScore-starscore clearfix top">
						<div class="letter left">
							职业素养：
						</div>
						<div class="star left" id="jinengNum12">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png" hidden="hidden">
						</div>
					</div>
				</div>
				<div class="myScore" id="dgsxls" hidden="hidden">
					<p class="title">
						老师评分
					</p>
					<div class="myScore-starscore clearfix">
						<div class="letter left">
							工作表现：
						</div>
						<div class="star left" id="taiduNum1">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png" hidden="hidden">
						</div>
					</div>
					<div class="myScore-starscore clearfix top">
						<div class="letter left">
							学习能力：
						</div>
						<div class="star left" id="chuqinNum1">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png" hidden="hidden">
						</div>
					</div>
					<div class="myScore-starscore clearfix top">
						<div class="letter left">
							工作态度：
						</div>
						<div class="star left" id="workendNum1">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png" hidden="hidden">
						</div>
					</div>
					<div class="myScore-starscore clearfix top">
						<div class="letter left">
							安全意识：
						</div>
						<div class="star left" id="jinengNum1">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png">
							<img src="../../image/icon_xingxing01.png" hidden="hidden">
						</div>
					</div>
				</div>
			</div>
			<!--<div   id="think" >
			<button  class="buttonBtn" onclick="Evaluate()" >
			我要评分
			</button>
			</div>-->
		</div>
		<a  id="think" hidden="hidden" href="javascript:;" class="buttonBtn" onclick="next()">我要评分</a>
	</body>
	<script src="../../script/jquery.min.js" type="text/javascript"></script>
	<script type="text/javascript" src="../../script/api.js"></script>
	<script type="text/javascript" src="../../script/MD5.js"></script>
	<script type="text/javascript" src="../../script/requestTool.js"></script>
	<script type="text/javascript" src="../../script/databaseOperation.js"></script>
	<script src="../../script/attachmentManager.js"></script>
	<script type="text/javascript" src="../../script/base64.min.js"></script>
	<script type="text/javascript" src="../../script/common.js"></script>
	<script type="text/javascript">
		var dataArr = new Array();
		var page = 1;
		var row = 10;
		var monthid = '';
		var stuid = '';
		var sxtypes = '';
		//未审核
		DBReady = function() {
			// SendBehaviorTrajectoriesNotifi1('0', '老师端月报列表详情', '108', api.pageParam.sourceurl, api.pageParam.sourcetitle, window.location.pathname, document.title);
			var pageParam = api.pageParam;
			monthid = pageParam.monthid;
			sxtypes = pageParam.sxtypes;
			//0：顶岗，1：认知，2:跟岗
			if (sxtypes == 0) {
				$('#dgsxqy').show();
				$('#dgsxm').show();
				$('#dgsxls').show();
				//跟岗实习
			} else if (sxtypes == 2) {
				$('#ggsxqy').show();
			}
			setupDownloadAttNotifi();
			loadData(monthid);
		};
		function loadData(monthid) {
			var param = {
				uid : $api.getStorage('cfnetppuid'),
				jid : $api.getStorage('cfnetppjid'),
				ybid : monthid
			};
			cfnetppPOST(urlLsydetails, param, true, function(data, status) {
				//								alert('获取数据' + JSON.stringify(data));
				if (status == 'success') {
					if (data.status == 1) {
						var list = data.json;
						if (list != null) {
							if (isSameMonth(api.pageParam.monthtime, list.time) == true) {
								$('#now_time').text(getLocalTime(api.pageParam.monthtime));
								$('#timediv_one').hide();
							} else {
								$('#timediv_one').show();
								$('#now_time').text(getLocalTime(list.time));
								$('#nomal_time').text(getLocalTime(api.pageParam.monthtime));
							}
							var qyArr = list.qypf;
							var xsArr = list.xszp;
							var summary = xsArr.summary;
							$('#summary').html(Base64.decode(summary));
							stuid = xsArr.uid;
							var urldata = xsArr.urldata;
							if (urldata != null && urldata != '' && urldata.length > 0) {
								$('#attachment_div').show();
							}
							var arr = new Array();
							for (var i = 0; i < urldata.length; i++) {
								var monthData = urldata[i];
								var data = {
									id : monthData.id,
									url : monthData.enclosureurl,
									size : monthData.enclosuresize,
									name : monthData.enclosurename,
								};
								arr.push(data);
							}
							saveAttDatasToDb(arr, '');
							var sxtd = parseInt(xsArr.sxtd) / 5;
							//实习态度(0~10分)
							var cql = parseInt(xsArr.cql) / 5;
							//出勤率
							var gzwcd = parseInt(xsArr.gzwcd) / 5;
							//工作完成度
							var jnzwd = parseInt(xsArr.jnzwd) / 5;
							var qcomment = qyArr.qcomment;
							if (qcomment == null || qcomment.length <= 0) {
								$('#qcomment').text('暂无企业评价，请耐心等待');
							} else {
								$('#qcomment').html(Base64.decode(qcomment));
							}
							//企业评语
							var qsxtd = parseInt(qyArr.qsxtd) / 5;
							//实习态度(0~10分)
							var qcql = parseInt(qyArr.qcql) / 5;
							//出勤率
							var qjnzwd = parseInt(qyArr.qjnzwd) / 5;
							//工作完成度
							var qgzwcd = parseInt(qyArr.qgzwcd) / 5;
							//判断企业是否评价了，没评价，则不能点击进入评价页面
							if (qsxtd > 0 & qcql > 0 & qjnzwd > 0 & qgzwcd > 0) {
								$('#think').show();
							} else {
								setTimeout(function() {
									api.toast({
										msg : '企业还未评价,你还不能评价学生的月报',
										duration : 2000,
										location : 'bottom'
									});
								}, 1000);
								$('#think').hide();
							}
							$("#taiduNum img").eq(sxtd).prevAll().attr("src", "../../image/icon_xingxing.png")
							$("#chuqinNum img").eq(cql).prevAll().attr("src", "../../image/icon_xingxing.png")
							$("#workendNum img").eq(gzwcd).prevAll().attr("src", "../../image/icon_xingxing.png")
							$("#jinengNum img").eq(jnzwd).prevAll().attr("src", "../../image/icon_xingxing.png")
							//企业评分(跟岗)
							$("#taiduNum22 img").eq(qsxtd).prevAll().attr("src", "../../image/icon_xingxing.png")
							$("#chuqinNum22 img").eq(qcql).prevAll().attr("src", "../../image/icon_xingxing.png")
							$("#workendNum22 img").eq(qjnzwd).prevAll().attr("src", "../../image/icon_xingxing.png")
							$("#jinengNum22 img").eq(qgzwcd).prevAll().attr("src", "../../image/icon_xingxing.png")
							//企业评分（顶岗）
							$("#taiduNum2 img").eq(qsxtd).prevAll().attr("src", "../../image/icon_xingxing.png")
							$("#chuqinNum2 img").eq(qcql).prevAll().attr("src", "../../image/icon_xingxing.png")
							$("#workendNum2 img").eq(qjnzwd).prevAll().attr("src", "../../image/icon_xingxing.png")
							$("#jinengNum2 img").eq(qgzwcd).prevAll().attr("src", "../../image/icon_xingxing.png")
						} else {
							//		                 $('#noData').show();
							api.toast({
								msg : '获取数据失败',
								duration : 2000,
								location : 'bottom'
							});
						}
					} else {
						api.toast({
							msg : '获取数据失败',
							duration : 2000,
							location : 'bottom'
						});
					}
				} else {
					api.toast({
						msg : '网络连接失败',
						duration : 2000,
						location : 'bottom'
					});
				}
			});
		}

		function next() {
			//			SendBehaviorTrajectoriesNotifi('1', '老师端月报列表详情', '108');
			api.openWin({useWKWebView:true,
				name : 'Teacher_MouthReviewedScore',
				url : 'Teacher_MouthReviewedScore.html',
				allowEdit : true,
				pageParam : {
					id : monthid,
					stuid : stuid,
					sxtypes : sxtypes,
					sourceurl : window.location.pathname,
					sourcetitle : document.title
				}
			});
		}

		// function backClick() {
		// 	SendBehaviorTrajectoriesNotifi1('1', '老师端月报列表详情', '108', api.pageParam.sourceurl, api.pageParam.sourcetitle, window.location.pathname, document.title);
		// 	api.closeWin();
		// }
	</script>
</html>